from .app import app
import logging

# 配置日志，确保WSGI环境中的日志可见
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
logger.info("WSGI环境初始化完成，CORS配置已从app.py导入")

# 添加application变量作为app的别名，以支持Gunicorn启动
application = app

if __name__ == "__main__":
    app.run()